<template>
  <div class="patient-div">
    <!-- <el-backtop :right="100" :bottom="100" target=".patient-div"></el-backtop> -->

    <div class="patient-div-inner">
      <el-form>
        <!-- 隐藏图片 -->
        <!-- <div
          class="patient-header"
          :style="{
            'background-image': `url(${require('@/assets/patientheader.png')})`,
          }"
        > -->
        <!-- <div
          class="patient-header"
          :style="{
            'background-image': `url(${require('@/assets/patientheader_yc.png')})`,
          }"
        > -->
        <div
          class="patient-header"
          :style="{
            'background-image': `url(${require('@/assets/patientheader_dxhd.png')})`,
          }"
        >
          <div class="csss">
            <el-row>
              <el-col :span="5">
                <el-form-item prop="name"> {{ formInline.Name }}</el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="4">
                <el-form-item label="编码:">
                  {{ formInline.PatientRecordCode }}
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="创建时间:">{{
                  formInline.SeeADoctorDate
                }}</el-form-item>
              </el-col>
            </el-row>
          </div>
        </div>
        <div class="patient-container">
          <el-form
            :inline="true"
            label-width="100px"
            class="demo-form-inline"
            label-position="left"
            :model="formInline"
            :rules="patientFormRulesMixin.updateFormRules"
            ref="updateDialogRef"
          >
            <h4>基本信息</h4>
            <el-row :gutter="20">
              <el-col :span="5">
                <el-form-item
                  label="姓名"
                  :label-text-style="{ color: '#000' }"
                >
                  <el-input v-model="formInline.Name" />
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-form-item label="性别">
                  <el-select v-model="formInline.Sex">
                    <el-option label="男" value="男" />
                    <el-option label="女" value="女" />
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="年龄">
                  <el-input v-model="formInline.Age" />
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="国籍（地区）">
                  <el-input v-model="formInline.Nationality" />
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="民族">
                  <el-input v-model="formInline.Nation" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="5">
                <el-form-item label="联系电话">
                  <el-input
                    v-model="formInline.Telephone"
                    class="w-50 m-2"
                    size="large"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-form-item label="证件类型">
                  <el-select v-model="formInline.CertificateType">
                    <el-option
                      v-for="item in certificateTypeOption"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    />
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="证件号码">
                  <el-input v-model="formInline.CertificateCode" />
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="人员类别">
                  <el-select v-model="formInline.PatientType">
                    <el-option
                      v-for="item in pantientTypeOption"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    />
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="所属场馆">
                  <!-- <el-tooltip
                    effect="light"
                    :content="formInline.VenuesName"
                    placement="bottom"
                  >

                  </el-tooltip> -->
                  <el-select
                    v-model="formInline.VenuesName"
                    placeholder="--选择--"
                    filterable
                    clearable
                  >
                    <el-option
                      v-for="item in activityVenuesOption"
                      :key="item.Code"
                      :label="item.CHIDescription"
                      :value="item.Code"
                    />
                  </el-select>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="5">
                <el-form-item label="就诊时间">
                  <el-date-picker
                    v-model="formInline.SeeADoctorDate"
                    type="datetime"
                    placeholder="--请选择--"
                    value-format="YYYY-MM-DD HH:mm:ss"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-form-item label="疾病史">
                  <el-input v-model="formInline.DiseaseKeyword"> </el-input>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="血型">
                  <el-select v-model="formInline.BloodType">
                    <el-option
                      v-for="item in bloodTypeOption"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    />
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="病情分级">
                  <el-input v-model="formInline.IllnessLevel" />
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="单位">
                  <el-input v-model="formInline.Company" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="5"> </el-col>
              <el-col :span="5">
                <!-- <el-form-item label="是否群体事件"> -->
                <!-- <el-input v-model="formInline.IsGroup" :readonly="true" /> -->
                <!-- <el-checkbox
                    v-model="formInline.IsGroup"
                    size="large"
                    :true-label="1"
                    :false-label="0"
                  />
                </el-form-item> -->
              </el-col>
              <el-col :span="5">
                <!-- <el-form-item label="是否需要增援">
                  <el-checkbox
                    v-model="formInline.IsReinforcement"
                    size="large"
                    :true-label="1"
                    :false-label="0"
                  />
                </el-form-item> -->
              </el-col>
              <el-col :span="4"> </el-col>
            </el-row>
          </el-form>
          <h4>救治信息</h4>
          <el-tabs
            v-model="activeName"
            type="card"
            class="demo-tabs"
            @tab-click="handleClick"
          >
            <el-tab-pane label="会场记录" name="1">
              <h4>病史</h4>
              <el-form
                :model="formHistory1"
                class="demo-form-inline"
                label-width="100px"
                label-position="left"
              >
                <el-row :gutter="20">
                  <el-col :span="15">
                    <el-form-item label="主诉">
                      <el-input
                        v-model="formHistory1.MainSuit"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="10">
                    <el-form-item label="现病史">
                      <el-input
                        v-model="formHistory1.MedicalHistory"
                        :rows="4"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="10">
                    <el-form-item label="既往史">
                      <el-input
                        v-model="formHistory1.FormerlyMedicalHistory"
                        :rows="4"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="10">
                    <el-form-item label="用药史">
                      <el-input
                        v-model="formHistory1.PharmacyHistory"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="10">
                    <el-form-item label="过敏史">
                      <el-input
                        v-model="formHistory1.AllergyHistory"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="5">
                    <el-checkbox
                      v-model="formHistory1.SojournHistory"
                      label="流行病学接触史或者旅居史"
                      size="large"
                      :true-label="1"
                      :false-label="0"
                    />
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="补充">
                      <el-input
                        v-model="formHistory1.SojournHistorySupplement"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <!-- <el-row :gutter="20">
                  <el-col :span="5">
                    <el-form-item label="最后进食时间">
                      <el-input v-model="formHistory1.FinallyFeedTime" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="进食食物情况">
                      <el-input v-model="formHistory1.FoodThat" />
                    </el-form-item>
                  </el-col>
                </el-row> -->
              </el-form>
              <h4>生命体征</h4>
              <el-form
                v-for="item in vitalSignsForm1"
                :key="item"
                :v-show="vitalSignsForm1.count > 0"
              >
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="T">
                      <el-input v-model="item.T" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="P">
                      <el-input v-model="item.P"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="R">
                      <el-input v-model="item.R" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="2">
                    <el-form-item label="SBP">
                      <el-input v-model="item.SBP" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="1">
                    <el-form-item>
                      <span>mmhg</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="2">
                    <el-form-item label="DBP">
                      <el-input v-model="item.DBP" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="1">
                    <el-form-item>
                      <span>mmhg</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="SPO2">
                      <el-input v-model="item.SPO2" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="神志">
                      <el-select v-model="item.Consciousness" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>一般查体</h4>
              <el-form :model="bodyInForm1">
                <el-row :gutter="20">
                  <el-col :span="2">
                    <el-form-item label="左瞳孔">
                      <el-input v-model="bodyInForm1.LeftPupil"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="对光反应">
                      <el-select v-model="bodyInForm1.LeftDGFY" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.LeftPupilSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="2">
                    <el-form-item label="右瞳孔">
                      <el-input v-model="bodyInForm1.RightPupil"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="对光反应">
                      <el-select v-model="bodyInForm1.RightDGFY" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.RightPupilSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="头部">
                      <el-input v-model="bodyInForm1.Cephalosome" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.CephalosomeSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="颈部">
                      <el-input v-model="bodyInForm1.Neck"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.NeckSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="胸部">
                      <el-input v-model="bodyInForm1.Chest" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.ChestSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="肺部">
                      <el-input v-model="bodyInForm1.Lung" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.LungSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="腹部">
                      <el-input v-model="bodyInForm1.Abdomen" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.AbdomenSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="骨盆">
                      <el-input v-model="bodyInForm1.Pelvis" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.PelvisSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>

                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="四肢">
                      <el-input v-model="bodyInForm1.ArmsAndLegs" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.ArmsAndLegsSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="脊柱">
                      <el-input v-model="bodyInForm1.Spine" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.SpineSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="神经体征">
                      <el-input v-model="bodyInForm1.Neuro"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.NeuroSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="心脏">
                      <el-input v-model="bodyInForm1.Heart" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.HeartSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="15">
                    <el-form-item label="其他">
                      <el-input v-model="bodyInForm1.Rests" />
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>诊断</h4>
              <el-form :model="auxiliaryForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="疾病分类">
                      <el-input v-model="DiagnosisForm1.Classify" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="受伤部位">
                      <el-input v-model="DiagnosisForm1.InjuredPart" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="特殊标签">
                      <el-input v-model="DiagnosisForm1.SpecialTag" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断时间">
                      <el-date-picker
                        v-model="DiagnosisForm1.DateTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="预检分级">
                      <el-input v-model="DiagnosisForm1.Classification" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断大类">
                      <el-input v-model="DiagnosisForm1.ParentDiagnosis" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断子类">
                      <el-input v-model="DiagnosisForm1.ChildrenDiagnosis" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20"> </el-row>
              </el-form>
              <h4>症状监测</h4>
              <el-form :model="SymptomForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="症状">
                      <el-input v-model="SymptomForm1.Symptom" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="发病时间">
                      <el-date-picker
                        v-model="SymptomForm1.Time"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断">
                      <el-input v-model="SymptomForm1.Diagnose" />
                    </el-form-item>
                  </el-col>

                  <el-col :span="4">
                    <el-form-item label="去向">
                      <el-select v-model="SymptomForm1.Destination" clearable>
                        <el-option
                          label="处置后离开"
                          value="处置后离开"
                        ></el-option>
                        <el-option
                          label="送院治疗"
                          value="送院治疗"
                        ></el-option>
                        <el-option label="住院" value="住院"></el-option>
                        <el-option
                          label="居家观察"
                          value="居家观察"
                        ></el-option>
                        <el-option
                          label="居家隔离"
                          value="居家隔离"
                        ></el-option>
                        <el-option
                          label="居所观察"
                          value="居所观察"
                        ></el-option>
                        <el-option
                          label="居所隔离"
                          value="居所隔离"
                        ></el-option>
                        <el-option label="在岗" value="在岗"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>

                  <el-col :span="8">
                    <el-form-item label="备注">
                      <el-input v-model="SymptomForm1.Remarks" /> </el-form-item
                  ></el-col>
                </el-row>
              </el-form>
              <h4>辅助检查</h4>
              <el-form :model="auxiliaryForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="血糖">
                      <el-input v-model="auxiliaryForm1.BloodGlucose" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="血氧饱和度">
                      <el-input v-model="auxiliaryForm1.XYBHD" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="心电监护">
                      <el-input v-model="auxiliaryForm1.XDJH" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电监护图片">
                      <!-- <el-input v-model="auxiliaryForm1.XDJHPicture" /> -->
                      <el-image
                        style="width: 100px; height: 100px"
                        :src="auxiliaryForm1.XDJHPicture"
                        :zoom-rate="1.2"
                        :preview-src-list="srcList"
                        :initial-index="0"
                        :infinite="false"
                        fit="cover"
                      >
                        <template #error>
                          <div class="image-slot">
                            <el-icon><icon-picture /></el-icon>
                          </div>
                        </template>
                      </el-image>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电图">
                      <el-input v-model="auxiliaryForm1.ECG" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="心电图补充">
                      <el-input v-model="auxiliaryForm1.ECGSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电图图片">
                      <!-- <el-input v-model="auxiliaryForm1.XDJHPicture" /> -->
                      <el-image
                        style="width: 100px; height: 100px"
                        :src="auxiliaryForm1.XDTPicture"
                        :zoom-rate="1.2"
                        :preview-src-list="srcListXDT"
                        :initial-index="0"
                        :infinite="false"
                        fit="cover"
                      >
                        <template #error>
                          <div class="image-slot">
                            <el-icon><icon-picture /></el-icon>
                          </div>
                        </template>
                      </el-image>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>处置</h4>
              <el-form label-position="right" :model="disposalForm1">
                <!-- 病情告知 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>病情告知</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.Inform">
                      <el-checkbox
                        size="large"
                        v-for="item in InformCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 包扎固定 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>包扎固定</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.BindUp">
                      <el-checkbox
                        size="large"
                        v-for="item in BindUpCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 呼吸支持 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>呼吸支持</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.AirwayManagement">
                      <el-checkbox
                        size="large"
                        v-for="item in BreathCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 循环支持 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>循环支持</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group
                      v-model="disposalForm1.CirculatorySupport"
                    >
                      <el-checkbox
                        size="large"
                        v-for="item in CirculatoryCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 辅助检查 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>辅助检查</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.Examine">
                      <el-checkbox
                        size="large"
                        v-for="item in AssistantCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>药物治疗</el-form-item></el-col
                  >
                  <el-col :span="10">
                    <el-input
                      v-model="disposalForm1.DrugTherapyName"
                      type="textarea"
                  /></el-col>
                </el-row>
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>非药物治疗</el-form-item></el-col
                  >
                  <el-col :span="10">
                    <el-input v-model="disposalForm1.Rests" type="textarea"
                  /></el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4"
                    ><el-form-item>拒绝治疗</el-form-item></el-col
                  >
                  <el-col :span="4"
                    ><el-form-item>
                      <el-checkbox
                        v-model="disposalForm1.Refuse"
                        size="large"
                        true-label="是"
                        false-label="否"
                      /> </el-form-item
                  ></el-col>
                  <el-col :span="10">
                    <el-image
                      style="width: 100px; height: 100px"
                      :src="disposalForm1.JJZLPicture"
                      :zoom-rate="1.2"
                      :preview-src-list="srcListJJZL"
                      :initial-index="0"
                      :infinite="false"
                      fit="cover"
                    >
                      <template #error>
                        <div class="image-slot">
                          <el-icon><icon-picture /></el-icon>
                        </div>
                      </template>
                    </el-image>
                  </el-col>
                </el-row>
              </el-form>
              <h4>去向</h4>
              <el-form :model="whereForm1">
                <el-row :gutter="20">
                  <el-col :span="3">
                    <el-form-item label="医生">
                      <el-input v-model="whereForm1.Doctor"
                    /></el-form-item>
                  </el-col>

                  <el-col :span="4">
                    <el-form-item label="就诊时间">
                      <el-date-picker
                        v-model="whereForm1.StartTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="离开时间">
                      <el-date-picker
                        v-model="whereForm1.EndTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="3">
                    <el-form-item label="病人去向">
                      <el-input v-model="whereForm1.QX"
                    /></el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </el-tab-pane>
            <el-tab-pane label="车辆记录" name="2">
              <h4>病史</h4>
              <el-form
                :model="formHistory1"
                class="demo-form-inline"
                label-width="100px"
                label-position="left"
              >
                <el-row :gutter="20">
                  <el-col :span="15">
                    <el-form-item label="主诉">
                      <el-input
                        v-model="formHistory1.MainSuit"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="10">
                    <el-form-item label="现病史">
                      <el-input
                        v-model="formHistory1.MedicalHistory"
                        :rows="4"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="10">
                    <el-form-item label="既往史">
                      <el-input
                        v-model="formHistory1.FormerlyMedicalHistory"
                        :rows="4"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="10">
                    <el-form-item label="用药史">
                      <el-input
                        v-model="formHistory1.PharmacyHistory"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="10">
                    <el-form-item label="过敏史">
                      <el-input
                        v-model="formHistory1.AllergyHistory"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="5">
                    <el-checkbox
                      v-model="formHistory1.SojournHistory"
                      label="流行病学接触史或者旅居史"
                      size="large"
                      :true-label="1"
                      :false-label="0"
                    />
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="补充">
                      <el-input
                        v-model="formHistory1.SojournHistorySupplement"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <!-- <el-row :gutter="20">
                  <el-col :span="5">
                    <el-form-item label="最后进食时间">
                      <el-input v-model="formHistory1.FinallyFeedTime" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="进食食物情况">
                      <el-input v-model="formHistory1.FoodThat" />
                    </el-form-item>
                  </el-col>
                </el-row> -->
              </el-form>
              <h4>生命体征</h4>
              <el-form
                v-for="item in vitalSignsForm1"
                :key="item"
                :v-show="vitalSignsForm1.count > 0"
              >
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="T">
                      <el-input v-model="item.T" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="P">
                      <el-input v-model="item.P"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="R">
                      <el-input v-model="item.R" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="2">
                    <el-form-item label="SBP">
                      <el-input v-model="item.SBP" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="1">
                    <el-form-item>
                      <span>mmhg</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="2">
                    <el-form-item label="DBP">
                      <el-input v-model="item.DBP" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="1">
                    <el-form-item>
                      <span>mmhg</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="SPO2">
                      <el-input v-model="item.SPO2" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="神志">
                      <el-select v-model="item.Consciousness" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>一般查体</h4>
              <el-form :model="bodyInForm1">
                <el-row :gutter="20">
                  <el-col :span="2">
                    <el-form-item label="左瞳孔">
                      <el-input v-model="bodyInForm1.LeftPupil"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="对光反应">
                      <el-select v-model="bodyInForm1.LeftDGFY" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.LeftPupilSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="2">
                    <el-form-item label="右瞳孔">
                      <el-input v-model="bodyInForm1.RightPupil"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="对光反应">
                      <el-select v-model="bodyInForm1.RightDGFY" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.RightPupilSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="头部">
                      <el-input v-model="bodyInForm1.Cephalosome" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.CephalosomeSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="颈部">
                      <el-input v-model="bodyInForm1.Neck"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.NeckSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="胸部">
                      <el-input v-model="bodyInForm1.Chest" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.ChestSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="肺部">
                      <el-input v-model="bodyInForm1.Lung" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.LungSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="腹部">
                      <el-input v-model="bodyInForm1.Abdomen" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.AbdomenSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="骨盆">
                      <el-input v-model="bodyInForm1.Pelvis" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.PelvisSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>

                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="四肢">
                      <el-input v-model="bodyInForm1.ArmsAndLegs" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.ArmsAndLegsSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="脊柱">
                      <el-input v-model="bodyInForm1.Spine" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.SpineSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="神经体征">
                      <el-input v-model="bodyInForm1.Neuro"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.NeuroSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="心脏">
                      <el-input v-model="bodyInForm1.Heart" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.HeartSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="15">
                    <el-form-item label="其他">
                      <el-input v-model="bodyInForm1.Rests" />
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>诊断</h4>
              <el-form :model="auxiliaryForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="疾病分类">
                      <el-input v-model="DiagnosisForm1.Classify" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="受伤部位">
                      <el-input v-model="DiagnosisForm1.InjuredPart" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="特殊标签">
                      <el-input v-model="DiagnosisForm1.SpecialTag" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断时间">
                      <el-date-picker
                        v-model="DiagnosisForm1.DateTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="预检分级">
                      <el-input v-model="DiagnosisForm1.Classification" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断大类">
                      <el-input v-model="DiagnosisForm1.ParentDiagnosis" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断子类">
                      <el-input v-model="DiagnosisForm1.ChildrenDiagnosis" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20"> </el-row>
              </el-form>
              <h4>症状监测</h4>
              <el-form :model="SymptomForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="症状">
                      <el-input v-model="SymptomForm1.Symptom" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="发病时间">
                      <el-date-picker
                        v-model="SymptomForm1.Time"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断">
                      <el-input v-model="SymptomForm1.Diagnose" />
                    </el-form-item>
                  </el-col>

                  <el-col :span="4">
                    <el-form-item label="去向">
                      <el-select v-model="SymptomForm1.Destination" clearable>
                        <el-option
                          label="处置后离开"
                          value="处置后离开"
                        ></el-option>
                        <el-option
                          label="送院治疗"
                          value="送院治疗"
                        ></el-option>
                        <el-option label="住院" value="住院"></el-option>
                        <el-option
                          label="居家观察"
                          value="居家观察"
                        ></el-option>
                        <el-option
                          label="居家隔离"
                          value="居家隔离"
                        ></el-option>
                        <el-option
                          label="居所观察"
                          value="居所观察"
                        ></el-option>
                        <el-option
                          label="居所隔离"
                          value="居所隔离"
                        ></el-option>
                        <el-option label="在岗" value="在岗"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>

                  <el-col :span="8">
                    <el-form-item label="备注">
                      <el-input v-model="SymptomForm1.Remarks" /> </el-form-item
                  ></el-col>
                </el-row>
              </el-form>
              <h4>辅助检查</h4>
              <el-form :model="auxiliaryForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="血糖">
                      <el-input v-model="auxiliaryForm1.BloodGlucose" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="血氧饱和度">
                      <el-input v-model="auxiliaryForm1.XYBHD" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="心电监护">
                      <el-input v-model="auxiliaryForm1.XDJH" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电监护图片">
                      <!-- <el-input v-model="auxiliaryForm1.XDJHPicture" /> -->
                      <el-image
                        style="width: 100px; height: 100px"
                        :src="auxiliaryForm1.XDJHPicture"
                        :zoom-rate="1.2"
                        :preview-src-list="srcList"
                        :initial-index="0"
                        :infinite="false"
                        fit="cover"
                      >
                        <template #error>
                          <div class="image-slot">
                            <el-icon><icon-picture /></el-icon>
                          </div>
                        </template>
                      </el-image>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电图">
                      <el-input v-model="auxiliaryForm1.ECG" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="心电图补充">
                      <el-input v-model="auxiliaryForm1.ECGSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电图图片">
                      <!-- <el-input v-model="auxiliaryForm1.XDJHPicture" /> -->
                      <el-image
                        style="width: 100px; height: 100px"
                        :src="auxiliaryForm1.XDTPicture"
                        :zoom-rate="1.2"
                        :preview-src-list="srcListXDT"
                        :initial-index="0"
                        :infinite="false"
                        fit="cover"
                      >
                        <template #error>
                          <div class="image-slot">
                            <el-icon><icon-picture /></el-icon>
                          </div>
                        </template>
                      </el-image>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>处置</h4>
              <el-form label-position="right" :model="disposalForm1">
                <!-- 病情告知 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>病情告知</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.Inform">
                      <el-checkbox
                        size="large"
                        v-for="item in InformCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 包扎固定 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>包扎固定</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.BindUp">
                      <el-checkbox
                        size="large"
                        v-for="item in BindUpCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 呼吸支持 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>呼吸支持</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.AirwayManagement">
                      <el-checkbox
                        size="large"
                        v-for="item in BreathCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 循环支持 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>循环支持</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group
                      v-model="disposalForm1.CirculatorySupport"
                    >
                      <el-checkbox
                        size="large"
                        v-for="item in CirculatoryCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 辅助检查 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>辅助检查</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.Examine">
                      <el-checkbox
                        size="large"
                        v-for="item in AssistantCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>药物治疗</el-form-item></el-col
                  >
                  <el-col :span="10">
                    <el-input
                      v-model="disposalForm1.DrugTherapyName"
                      type="textarea"
                  /></el-col>
                </el-row>
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>非药物治疗</el-form-item></el-col
                  >
                  <el-col :span="10">
                    <el-input v-model="disposalForm1.Rests" type="textarea"
                  /></el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4"
                    ><el-form-item>拒绝治疗</el-form-item></el-col
                  >
                  <el-col :span="4"
                    ><el-form-item>
                      <el-checkbox
                        v-model="disposalForm1.Refuse"
                        size="large"
                        true-label="是"
                        false-label="否"
                      /> </el-form-item
                  ></el-col>
                  <el-col :span="10">
                    <el-image
                      style="width: 100px; height: 100px"
                      :src="disposalForm1.JJZLPicture"
                      :zoom-rate="1.2"
                      :preview-src-list="srcListJJZL"
                      :initial-index="0"
                      :infinite="false"
                      fit="cover"
                    >
                      <template #error>
                        <div class="image-slot">
                          <el-icon><icon-picture /></el-icon>
                        </div>
                      </template>
                    </el-image>
                  </el-col>
                </el-row>
              </el-form>
              <h4>去向</h4>
              <el-form :model="whereForm1">
                <el-row :gutter="20">
                  <el-col :span="3">
                    <el-form-item label="医生">
                      <el-input v-model="whereForm1.Doctor"
                    /></el-form-item>
                  </el-col>

                  <el-col :span="4">
                    <el-form-item label="就诊时间">
                      <el-date-picker
                        v-model="whereForm1.StartTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="离开时间">
                      <el-date-picker
                        v-model="whereForm1.EndTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="3">
                    <el-form-item label="病人去向">
                      <el-input v-model="whereForm1.QX"
                    /></el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </el-tab-pane>
            <el-tab-pane label="医院处置" name="3">
              <h4>病史</h4>
              <el-form
                :model="formHistory1"
                class="demo-form-inline"
                label-width="100px"
                label-position="left"
              >
                <el-row :gutter="20">
                  <el-col :span="15">
                    <el-form-item label="主诉">
                      <el-input
                        v-model="formHistory1.MainSuit"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="10">
                    <el-form-item label="现病史">
                      <el-input
                        v-model="formHistory1.MedicalHistory"
                        :rows="4"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="10">
                    <el-form-item label="既往史">
                      <el-input
                        v-model="formHistory1.FormerlyMedicalHistory"
                        :rows="4"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="10">
                    <el-form-item label="用药史">
                      <el-input
                        v-model="formHistory1.PharmacyHistory"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="10">
                    <el-form-item label="过敏史">
                      <el-input
                        v-model="formHistory1.AllergyHistory"
                        :rows="2"
                        type="textarea"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="5">
                    <el-checkbox
                      v-model="formHistory1.SojournHistory"
                      label="流行病学接触史或者旅居史"
                      size="large"
                      :true-label="1"
                      :false-label="0"
                    />
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="补充">
                      <el-input
                        v-model="formHistory1.SojournHistorySupplement"
                      />
                    </el-form-item>
                  </el-col>
                </el-row>
                <!-- <el-row :gutter="20">
                  <el-col :span="5">
                    <el-form-item label="最后进食时间">
                      <el-input v-model="formHistory1.FinallyFeedTime" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="进食食物情况">
                      <el-input v-model="formHistory1.FoodThat" />
                    </el-form-item>
                  </el-col>
                </el-row> -->
              </el-form>
              <h4>生命体征</h4>
              <el-form
                v-for="item in vitalSignsForm1"
                :key="item"
                :v-show="vitalSignsForm1.count > 0"
              >
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="T">
                      <el-input v-model="item.T" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="P">
                      <el-input v-model="item.P"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="R">
                      <el-input v-model="item.R" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="2">
                    <el-form-item label="SBP">
                      <el-input v-model="item.SBP" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="1">
                    <el-form-item>
                      <span>mmhg</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="2">
                    <el-form-item label="DBP">
                      <el-input v-model="item.DBP" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="1">
                    <el-form-item>
                      <span>mmhg</span>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="SPO2">
                      <el-input v-model="item.SPO2" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="神志">
                      <el-select v-model="item.Consciousness" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>一般查体</h4>
              <el-form :model="bodyInForm1">
                <el-row :gutter="20">
                  <el-col :span="2">
                    <el-form-item label="左瞳孔">
                      <el-input v-model="bodyInForm1.LeftPupil"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="对光反应">
                      <el-select v-model="bodyInForm1.LeftDGFY" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.LeftPupilSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="2">
                    <el-form-item label="右瞳孔">
                      <el-input v-model="bodyInForm1.RightPupil"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="对光反应">
                      <el-select v-model="bodyInForm1.RightDGFY" clearable>
                        <el-option
                          label="清醒（警觉）"
                          value="清醒（警觉）"
                        ></el-option>
                        <el-option
                          label="对声音有反应"
                          value="对声音有反应"
                        ></el-option>
                        <el-option
                          label="对疼痛有反应"
                          value="对疼痛有反应"
                        ></el-option>
                        <el-option label="无反应" value="无反应"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.RightPupilSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="头部">
                      <el-input v-model="bodyInForm1.Cephalosome" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.CephalosomeSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="颈部">
                      <el-input v-model="bodyInForm1.Neck"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.NeckSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="胸部">
                      <el-input v-model="bodyInForm1.Chest" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.ChestSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="肺部">
                      <el-input v-model="bodyInForm1.Lung" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.LungSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="腹部">
                      <el-input v-model="bodyInForm1.Abdomen" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.AbdomenSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="骨盆">
                      <el-input v-model="bodyInForm1.Pelvis" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.PelvisSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>

                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="四肢">
                      <el-input v-model="bodyInForm1.ArmsAndLegs" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.ArmsAndLegsSupplement" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="脊柱">
                      <el-input v-model="bodyInForm1.Spine" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.SpineSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="神经体征">
                      <el-input v-model="bodyInForm1.Neuro"> </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.NeuroSupplement">
                      </el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="心脏">
                      <el-input v-model="bodyInForm1.Heart" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="7">
                    <el-form-item label="补充">
                      <el-input v-model="bodyInForm1.HeartSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="15">
                    <el-form-item label="其他">
                      <el-input v-model="bodyInForm1.Rests" />
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>诊断</h4>
              <el-form :model="auxiliaryForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="疾病分类">
                      <el-input v-model="DiagnosisForm1.Classify" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="受伤部位">
                      <el-input v-model="DiagnosisForm1.InjuredPart" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="特殊标签">
                      <el-input v-model="DiagnosisForm1.SpecialTag" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断时间">
                      <el-date-picker
                        v-model="DiagnosisForm1.DateTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="预检分级">
                      <el-input v-model="DiagnosisForm1.Classification" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断大类">
                      <el-input v-model="DiagnosisForm1.ParentDiagnosis" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断子类">
                      <el-input v-model="DiagnosisForm1.ChildrenDiagnosis" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20"> </el-row>
              </el-form>
              <h4>症状监测</h4>
              <el-form :model="SymptomForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="症状">
                      <el-input v-model="SymptomForm1.Symptom" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="发病时间">
                      <el-date-picker
                        v-model="SymptomForm1.Time"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="诊断">
                      <el-input v-model="SymptomForm1.Diagnose" />
                    </el-form-item>
                  </el-col>

                  <el-col :span="4">
                    <el-form-item label="去向">
                      <el-select v-model="SymptomForm1.Destination" clearable>
                        <el-option
                          label="处置后离开"
                          value="处置后离开"
                        ></el-option>
                        <el-option
                          label="送院治疗"
                          value="送院治疗"
                        ></el-option>
                        <el-option label="住院" value="住院"></el-option>
                        <el-option
                          label="居家观察"
                          value="居家观察"
                        ></el-option>
                        <el-option
                          label="居家隔离"
                          value="居家隔离"
                        ></el-option>
                        <el-option
                          label="居所观察"
                          value="居所观察"
                        ></el-option>
                        <el-option
                          label="居所隔离"
                          value="居所隔离"
                        ></el-option>
                        <el-option label="在岗" value="在岗"></el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>

                  <el-col :span="8">
                    <el-form-item label="备注">
                      <el-input v-model="SymptomForm1.Remarks" /> </el-form-item
                  ></el-col>
                </el-row>
              </el-form>
              <h4>辅助检查</h4>
              <el-form :model="auxiliaryForm1">
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="血糖">
                      <el-input v-model="auxiliaryForm1.BloodGlucose" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="血氧饱和度">
                      <el-input v-model="auxiliaryForm1.XYBHD" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="心电监护">
                      <el-input v-model="auxiliaryForm1.XDJH" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电监护图片">
                      <!-- <el-input v-model="auxiliaryForm1.XDJHPicture" /> -->
                      <el-image
                        style="width: 100px; height: 100px"
                        :src="auxiliaryForm1.XDJHPicture"
                        :zoom-rate="1.2"
                        :preview-src-list="srcList"
                        :initial-index="0"
                        :infinite="false"
                        fit="cover"
                      >
                        <template #error>
                          <div class="image-slot">
                            <el-icon><icon-picture /></el-icon>
                          </div>
                        </template>
                      </el-image>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电图">
                      <el-input v-model="auxiliaryForm1.ECG" />
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="心电图补充">
                      <el-input v-model="auxiliaryForm1.ECGSupplement" />
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4">
                    <el-form-item label="心电图图片">
                      <!-- <el-input v-model="auxiliaryForm1.XDJHPicture" /> -->
                      <el-image
                        style="width: 100px; height: 100px"
                        :src="auxiliaryForm1.XDTPicture"
                        :zoom-rate="1.2"
                        :preview-src-list="srcListXDT"
                        :initial-index="0"
                        :infinite="false"
                        fit="cover"
                      >
                        <template #error>
                          <div class="image-slot">
                            <el-icon><icon-picture /></el-icon>
                          </div>
                        </template>
                      </el-image>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
              <h4>处置</h4>
              <el-form label-position="right" :model="disposalForm1">
                <!-- 病情告知 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>病情告知</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.Inform">
                      <el-checkbox
                        size="large"
                        v-for="item in InformCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 包扎固定 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>包扎固定</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.BindUp">
                      <el-checkbox
                        size="large"
                        v-for="item in BindUpCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 呼吸支持 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>呼吸支持</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.AirwayManagement">
                      <el-checkbox
                        size="large"
                        v-for="item in BreathCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 循环支持 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>循环支持</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group
                      v-model="disposalForm1.CirculatorySupport"
                    >
                      <el-checkbox
                        size="large"
                        v-for="item in CirculatoryCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <!-- 辅助检查 -->
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>辅助检查</el-form-item></el-col
                  >
                  <el-col :span="18">
                    <el-checkbox-group v-model="disposalForm1.Examine">
                      <el-checkbox
                        size="large"
                        v-for="item in AssistantCheckOptions"
                        :key="item.label"
                        :label="item.label"
                      />
                    </el-checkbox-group>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>药物治疗</el-form-item></el-col
                  >
                  <el-col :span="10">
                    <el-input
                      v-model="disposalForm1.DrugTherapyName"
                      type="textarea"
                  /></el-col>
                </el-row>
                <el-row>
                  <el-col :span="4"
                    ><el-form-item>非药物治疗</el-form-item></el-col
                  >
                  <el-col :span="10">
                    <el-input v-model="disposalForm1.Rests" type="textarea"
                  /></el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="4"
                    ><el-form-item>拒绝治疗</el-form-item></el-col
                  >
                  <el-col :span="4"
                    ><el-form-item>
                      <el-checkbox
                        v-model="disposalForm1.Refuse"
                        size="large"
                        true-label="是"
                        false-label="否"
                      /> </el-form-item
                  ></el-col>
                  <el-col :span="10">
                    <el-image
                      style="width: 100px; height: 100px"
                      :src="disposalForm1.JJZLPicture"
                      :zoom-rate="1.2"
                      :preview-src-list="srcListJJZL"
                      :initial-index="0"
                      :infinite="false"
                      fit="cover"
                    >
                      <template #error>
                        <div class="image-slot">
                          <el-icon><icon-picture /></el-icon>
                        </div>
                      </template>
                    </el-image>
                  </el-col>
                </el-row>
              </el-form>
              <h4>去向</h4>
              <el-form :model="whereForm1">
                <el-row :gutter="20">
                  <el-col :span="3">
                    <el-form-item label="医生">
                      <el-input v-model="whereForm1.Doctor"
                    /></el-form-item>
                  </el-col>

                  <el-col :span="4">
                    <el-form-item label="就诊时间">
                      <el-date-picker
                        v-model="whereForm1.StartTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="4">
                    <el-form-item label="离开时间">
                      <el-date-picker
                        v-model="whereForm1.EndTime"
                        type="datetime"
                        placeholder="--请选择--"
                        value-format="YYYY-MM-DD HH:mm:ss"
                      />
                    </el-form-item>
                  </el-col>
                  <el-col :span="3">
                    <el-form-item label="病人去向">
                      <el-input v-model="whereForm1.QX"
                    /></el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </el-tab-pane>
          </el-tabs>

          <el-backtop :right="100" :bottom="100" />
        </div>
        <div>
          <el-row justify="center">
            <el-col :span="6">
              <el-button
                type="primary"
                v-if="route.params.type == 'update'"
                v-btnpermission="'btn-patientrecordupdate'"
                @click="SubmitSave('add')"
                >保存病历</el-button
              >
            </el-col>
          </el-row>
        </div>
      </el-form>
    </div>
  </div>
</template>

<script setup>
import { ref, onBeforeMount } from 'vue';
import { sendMsg } from '@/utils/crossTabMsg.js';
import { Picture as IconPicture } from '@element-plus/icons-vue';
import { useRoute, onBeforeRouteLeave } from 'vue-router';
import { ElImage } from 'element-plus';
import { patientFormRulesMixin } from '@/utils/mixin.js';
import {
  getDicByDictionary,
  getDicByTableName,
  getActivityVenues,
} from '@/network/dictionary.js';
import {
  getBasicPatientList,
  getformHistory1List,
  getwhereForm1List,
  getbodyInForm1List,
  getvitalSignsForm1List,
  getauxiliaryForm1List,
  getdisposalForm1List,
  getDiagnosisForm1List,
  getSymptomForm1List,
} from '@/network/patient';
import store from '@/store';
import { editPatientRecord } from '@/network/patient.js';
import { ElMessage, ElMessageBox } from 'element-plus';
onBeforeRouteLeave(() => {
  store.commit('app/setPath', `/users`);
});
var route = useRoute(); //使用路由
let InformCheckOptions = ref(null);
let BindUpCheckOptions = ref(null);
let BreathCheckOptions = ref(null);
let CirculatoryCheckOptions = ref(null);
let AssistantCheckOptions = ref(null);
onBeforeMount(() => {
  initDic();
  initData(activeName.value);
});
//初始化数据
let certificateTypeOption = ref([]);
let bloodTypeOption = ref([]);
let pantientTypeOption = ref([]);
let activityVenuesOption = ref([]);
let formInline = ref({});
let formHistory1 = ref({
  MainSuit: '',
  MedicalHistory: '',
  FormerlyMedicalHistory: '',
  PharmacyHistory: '',
  AllergyHistory: '',
  FinallyFeedTime: '',
  FoodThat: '',
});
let bodyInForm1 = ref({});
let vitalSignsForm1 = ref({});
let disposalForm1 = ref({});
let auxiliaryForm1 = ref({});
let SymptomForm1 = ref({});
const activeName = ref('1');
let whereForm1 = ref({});
let DiagnosisForm1 = ref({});
let srcList = [];
let srcListXDT = [];
let srcListJJZL = [];
const updateDialogRef = ref(null);
const initDic = async () => {
  //获取证件类型的字段
  await getDicByDictionary({ type: 'CertificatesType' }).then((res) => {
    certificateTypeOption.value = res;
  });
  //获取证件血型的字典
  await getDicByDictionary({ type: 'BloodType' }).then((res) => {
    bloodTypeOption.value = res;
  });
  //获取人员类型的字典
  await getDicByDictionary({ type: 'PantientType' }).then((res) => {
    pantientTypeOption.value = res;
  });
  //所属场馆
  await getActivityVenues().then((res) => {
    activityVenuesOption.value = res;
  });
  //获取通知类型
  await getDicByDictionary({ type: 'CZInformType' }).then((res) => {
    InformCheckOptions.value = res;
  });
  //获取包扎固定
  await getDicByDictionary({ type: 'CZBandageType' }).then((res) => {
    BindUpCheckOptions.value = res;
  });
  //获取辅助检查
  await getDicByDictionary({ type: 'CZInspectType' }).then((res) => {
    AssistantCheckOptions.value = res;
  });
  //获取呼吸
  await getDicByDictionary({ type: 'CZAirwayManagementType' }).then((res) => {
    BreathCheckOptions.value = res;
  });
  //获取循环
  await getDicByDictionary({ type: 'CZCirculationSupportType' }).then((res) => {
    CirculatoryCheckOptions.value = res;
  });
};

const initData = async (order) => {
  await getBasicPatientList({ patientId: route.params.id }).then((res) => {
    formInline.value = res;
  });
  await getformHistory1List({ patientId: route.params.id, order: order }).then(
    (res) => {
      if (res) {
        formHistory1.value = res;
      } else {
        formHistory1.value = {};
      }
    },
  );
  await getbodyInForm1List({ patientId: route.params.id, order: order }).then(
    (res) => {
      if (res) {
        bodyInForm1.value = res;
      } else {
        bodyInForm1.value = {};
      }
    },
  );
  await getDiagnosisForm1List({
    patientId: route.params.id,
    order: order,
  }).then((res) => {
    if (res) {
      DiagnosisForm1.value = res;
    } else {
      DiagnosisForm1.value = {};
    }
  });
  await getSymptomForm1List({
    patientId: route.params.id,
    order: order,
  }).then((res) => {
    if (res) {
      SymptomForm1.value = res;
    } else {
      SymptomForm1.value = {};
    }
  });
  //辅助检查
  await getauxiliaryForm1List({
    patientId: route.params.id,
    order: order,
  }).then((res) => {
    if (res) {
      auxiliaryForm1.value = res;
      srcList = [auxiliaryForm1.value.XDJHPicture];
      srcListXDT = [auxiliaryForm1.value.XDTPicture];
      // auxiliaryForm1.value.XDJHPicture &&
      // srcList.push(auxiliaryForm1.value.XDJHPicture);
    } else {
      auxiliaryForm1.value = {};
    }
  });
  await getvitalSignsForm1List({
    patientId: route.params.id,
    order: order,
  }).then((res) => {
    if (res) {
      vitalSignsForm1.value = res;
    } else {
      vitalSignsForm1.value = [];
    }
  });
  await getdisposalForm1List({ patientId: route.params.id, order: order }).then(
    (res) => {
      if (res) {
        disposalForm1.value = res;
        // disposalForm1.Examine
        disposalForm1.value.Examine = !disposalForm1.value.Examine
          ? []
          : disposalForm1.value.Examine.split(',');
        disposalForm1.value.Inform = !disposalForm1.value.Inform
          ? []
          : disposalForm1.value.Inform.split(',');
        disposalForm1.value.CirculatorySupport = !disposalForm1.value
          .CirculatorySupport
          ? []
          : disposalForm1.value.CirculatorySupport.split(',');
        disposalForm1.value.AirwayManagement = !disposalForm1.value
          .AirwayManagement
          ? []
          : disposalForm1.value.AirwayManagement.split(',');
        disposalForm1.value.BindUp = !disposalForm1.value.BindUp
          ? []
          : disposalForm1.value.BindUp.split(',');
        srcListJJZL = [disposalForm1.value.JJZLPicture];
      } else {
        disposalForm1.value = {};
      }
    },
  );

  await getwhereForm1List({ patientId: route.params.id, order: order }).then(
    (res) => {
      if (res) {
        whereForm1.value = res;
      } else {
        whereForm1.value = {};
      }
    },
  );
};
const handleClick = (tab) => {
  initData(tab.paneName);
};
//保存病历
const SubmitSave = async (dialogType) => {
  // FormData data=new FormData();
  let formData = new FormData();
  formData.append('basicForm', JSON.stringify(formInline.value));
  await updateDialogRef.value.validate(async (valid) => {
    if (valid) {
      await editPatientRecord(formData)
        .then(() => {
          initData();
          sendMsg('message', '我是B组件，我被A组件触发了');
          console.info('发送数据');
          ElMessage.success('修改成功');
          // window.opener.location.reload();
        })
        .catch(() => {
          ElMessage.error('修改失败');
        });
    } else {
      ElMessage.error('请按要求填写');
      return false;
    }
  });
};
</script>

<style lang="scss" scoped>
.patient-div {
  height: 100vh;
  width: 99%;

  .patient-div-inner {
    margin: 0px auto;
    width: 1510px;

    .patient-header {
      background-position-y: -20px;
      background-repeat: no-repeat;
      height: 136px;

      .csss {
        padding-left: 32px;
        padding-top: 30px;
      }

      .el-row {
        height: 25px;
      }
    }
  }
}

.csss > :first-child {
  font-size: 18px;
  font-weight: bold;
}

h4 {
  border-left: 5px solid #8172d5;
  padding-left: 10px;
  margin-bottom: 10px;
}

.image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--el-fill-color-light);
  color: var(--el-text-color-secondary);
  font-size: 30px;
}
.image-slot .el-icon {
  font-size: 30px;
}
</style>
